package cn.wolfcode.education.mapper;

import cn.wolfcode.education.domain.Client;
import cn.wolfcode.education.query.ClientQuery;
import cn.wolfcode.education.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ClientMapper {

    int queryForCount(ClientQuery qo);

    List<Client> queryForList(ClientQuery qo);

    void save(Client client);

    void updateByPrimaryKey(Client client);

    void updateForTrace(Client client);

    void clientToPool(Long clientId);

    List<Client> getTestClient();

    void removeClientById(Long clientId);

    int queryCountForPool(QueryObject qo);

    List<Client> queryListForPool(QueryObject qo);

    void receiveClient(@Param("clientId") Long clientId, @Param("currentEmpId") Long currentEmpId);

    Client selectClientById(Long clientId);

    List<Map<String, Object>> isExsists();

    Client judge(Long clientId);
}